/*
 * @Author: zhangxiao
 * @Email: zhangxiao0125@163.com
 * @Date: 2020-06-02 16:11:53
 * @Last Modified by: zhangxiao
 * @Last Modified time: 2020-06-12 11:25:35
 * @Description: 公共搜索页面
 */


import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart';


/// 公共搜索
class ReqSearch {
  final Dio _dio;
  ReqSearch(this._dio);

  Future<Response> search({@required String title,@required String type,@required int schoolId,@required int pageSize, @required bool bottom, @required String selecttime}) {
     return _dio.post(
      '/Common/Search',
      queryParameters: {
        "title": title,
        "type":type,
        "schoolId":schoolId,
        "pageIndex":1,
        "pageSize":pageSize,
        "selecttime":selecttime,
        "bottom":bottom
      }
    );
    
  }
}